import { IFormConfig } from '@/components/PageSearch/types'

export const formConfig: IFormConfig = {
  cloLayoutType: {
    xl: { span: '1-5' },
    lg: { span: '1-5' },
    md: 8,
    sm: 12,
  },
  formItems: [
    {
      filed: 'name',
      type: 'input',
      placeholder: '请输入客户名称',
    },
    {
      filed: 'name',
      type: 'input',
      placeholder: '请输入联系人姓名',
    },
    {
      filed: 'password',
      type: 'input',
      placeholder: '请输入慧思ID',
    },
    {
      filed: 'stage',
      type: 'select',
      placeholder: '请选择跟踪阶段',
      options: [
        {
          label: '全部',
          value: '0',
        },
        {
          label: '初步洽谈',
          value: '1',
        },
        {
          label: '意向客户',
          value: '2',
        },
        {
          label: '确认需求',
          value: '3',
        },
        {
          label: '签约成功',
          value: '4',
        },
        {
          label: '到账成功',
          value: '5',
        },
        {
          label: '流失客户',
          value: '6',
        },
        {
          label: '无效客户',
          value: '7',
        },
      ],
    },
    {
      filed: 'servicefal',
      type: 'select',
      placeholder: '请选择服务情况',
      options: [
        {
          label: '全部',
          value: '0',
        },
        {
          label: '全部开通',
          value: '1',
        },
        {
          label: '部分开通',
          value: '2',
        },
        {
          label: '待开通',
          value: '3',
        },
        {
          label: '服务变更',
          value: '4',
        },
        {
          label: '申请服务',
          value: '5',
        },
        {
          label: '服务过期',
          value: '6',
        },
        {
          label: '无服务',
          value: '7',
        },
      ],
    },
    {
      filed: 'rank',
      type: 'select',
      placeholder: '请选择客户级别',
      options: [
        {
          label: '全部',
          value: '0',
        },
        {
          label: 'A类',
          value: '1',
        },
        {
          label: 'B类',
          value: '2',
        },
        {
          label: 'C类',
          value: '3',
        },
      ],
    },
    {
      filed: 'product',
      showSearch: true,
      type: 'select',
      placeholder: '请选择签约产品',
      options: [
        {
          label: '全部产品',
          value: '0',
        },
        {
          label: 'VIP68000',
          value: '1',
        },
        {
          label: 'GTIS专业版',
          value: '2',
        },
        {
          label: '普通版',
          value: '3',
        },
        {
          label: 'VIP零售',
          value: '4',
        },
        {
          label: 'VIP38000',
          value: '5',
        },
        {
          label: 'VIP48000',
          value: '6',
        },
      ],
    },
    {
      filed: 'source',
      type: 'select',
      placeholder: '请选择客户来源',
      options: [
        {
          label: '全部',
          value: '0',
        },
        {
          label: '搜索引擎',
          value: '1',
        },
        {
          label: '转介绍',
          value: '2',
        },
        {
          label: '广告推广',
          value: '3',
        },
        {
          label: '中国出口企业',
          value: '4',
        },
        {
          label: '广交会企业',
          value: '5',
        },
        {
          label: '其他',
          value: '6',
        },
      ],
    },
    {
      filed: 'data',
      type: 'select',
      placeholder: '请选择同行数据',
      options: [
        {
          label: '全部',
          value: '0',
        },
        {
          label: '有',
          value: '1',
        },
        {
          label: '无',
          value: '2',
        },
      ],
    },
    {
      filed: 'date',
      type: 'datepicker',
      placeholder: '请选择',
      otherOptions: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间',
        type: 'daterange',
      },
    },
  ],
}
